/**
 * 修改密码
 */
(function ({ UID, OldPassword, NewPassword }, headers) {
  // 验证用户
  if (!UID) throw Error("无效会话");

  const { affected } = A.db.execute(A.card('B.用户').连接名称, "UPDATE B_YH SET MM=? WHERE ID=? AND MM=?", [NewPassword, UID, OldPassword]);

  return affected > 0;
});